﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace lin_cms_dotnet_core.Models
{
    [Table("lin_group")]
    [Index(nameof(Name), nameof(DeleteTime), Name = "name_del", IsUnique = true)]
    public partial class LinGroup
    {
        [Key]
        [Column("id", TypeName = "int(10) unsigned")]
        public uint Id { get; set; }
        [Required]
        [Column("name")]
        [StringLength(60)]
        public string Name { get; set; }
        [Column("info")]
        [StringLength(255)]
        public string Info { get; set; }
        [Column("level", TypeName = "tinyint(2)")]
        public sbyte Level { get; set; }
        [Column("create_time", TypeName = "datetime(3)")]
        public DateTime CreateTime { get; set; }
        [Column("update_time", TypeName = "datetime(3)")]
        public DateTime UpdateTime { get; set; }
        [Column("delete_time", TypeName = "datetime(3)")]
        public DateTime? DeleteTime { get; set; }
    }
}
